package com.qf.Listener.work;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"work"})
public class WorkMessageLis1 {
    @RabbitHandler
    public void consum(String message){
        System.out.println("工作队列中的消息+++++++++++2"+message);
    }

}
